package cn.ibizlab.businesscentral.core.odoo_mro.client;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.*;
import cn.ibizlab.businesscentral.core.odoo_mro.domain.Mro_order_parts_line;
import cn.ibizlab.businesscentral.core.odoo_mro.filter.Mro_order_parts_lineSearchContext;
import org.springframework.cloud.openfeign.FeignClient;

/**
 * 实体[mro_order_parts_line] 服务对象接口
 */
@FeignClient(value = "${ibiz.ref.service.odoo-mro:odoo-mro}", contextId = "mro-order-parts-line", fallback = mro_order_parts_lineFallback.class)
public interface mro_order_parts_lineFeignClient {

    @RequestMapping(method = RequestMethod.PUT, value = "/mro_order_parts_lines/{id}")
    Mro_order_parts_line update(@PathVariable("id") Long id,@RequestBody Mro_order_parts_line mro_order_parts_line);

    @RequestMapping(method = RequestMethod.PUT, value = "/mro_order_parts_lines/batch")
    Boolean updateBatch(@RequestBody List<Mro_order_parts_line> mro_order_parts_lines);



    @RequestMapping(method = RequestMethod.GET, value = "/mro_order_parts_lines/{id}")
    Mro_order_parts_line get(@PathVariable("id") Long id);


    @RequestMapping(method = RequestMethod.DELETE, value = "/mro_order_parts_lines/{id}")
    Boolean remove(@PathVariable("id") Long id);

    @RequestMapping(method = RequestMethod.DELETE, value = "/mro_order_parts_lines/batch}")
    Boolean removeBatch(@RequestBody Collection<Long> idList);



    @RequestMapping(method = RequestMethod.POST, value = "/mro_order_parts_lines/search")
    Page<Mro_order_parts_line> search(@RequestBody Mro_order_parts_lineSearchContext context);


    @RequestMapping(method = RequestMethod.POST, value = "/mro_order_parts_lines")
    Mro_order_parts_line create(@RequestBody Mro_order_parts_line mro_order_parts_line);

    @RequestMapping(method = RequestMethod.POST, value = "/mro_order_parts_lines/batch")
    Boolean createBatch(@RequestBody List<Mro_order_parts_line> mro_order_parts_lines);




    @RequestMapping(method = RequestMethod.GET, value = "/mro_order_parts_lines/select")
    Page<Mro_order_parts_line> select();


    @RequestMapping(method = RequestMethod.GET, value = "/mro_order_parts_lines/getdraft")
    Mro_order_parts_line getDraft();


    @RequestMapping(method = RequestMethod.POST, value = "/mro_order_parts_lines/checkkey")
    Boolean checkKey(@RequestBody Mro_order_parts_line mro_order_parts_line);


    @RequestMapping(method = RequestMethod.POST, value = "/mro_order_parts_lines/save")
    Boolean save(@RequestBody Mro_order_parts_line mro_order_parts_line);

    @RequestMapping(method = RequestMethod.POST, value = "/mro_order_parts_lines/savebatch")
    Boolean saveBatch(@RequestBody List<Mro_order_parts_line> mro_order_parts_lines);



    @RequestMapping(method = RequestMethod.POST, value = "/mro_order_parts_lines/searchdefault")
    Page<Mro_order_parts_line> searchDefault(@RequestBody Mro_order_parts_lineSearchContext context);


}
